//倒入入口文件，像script中引入的src的vue.js一样
import Vue from 'vue'
import app from './App.vue'
import { Header,Swipe, SwipeItem ,Toast ,Button,Indicator,Lazyload } from 'mint-ui';
import 'mint-ui/lib/header/style.css'
import 'mint-ui/lib/swipe/style.css'
import 'mint-ui/lib/toast/style.css'
import 'mint-ui/lib/style.css'
import 'mint-ui/lib/button/style.css'
import 'mint-ui/lib/lazyload/style.css'
import 'mint-ui/lib/indicator/style.css'
import './lib/mui/css/mui.css'
import './lib/mui/css/icons-extra.css'

Vue.use(Lazyload);
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);

import VueRouter from 'vue-router'
Vue.use(VueRouter)
import VueResource from 'vue-resource'
Vue.use(VueResource)
Vue.http.options.root='http://localhost:8888/vueProject/public/api/';
//Vue.http.options.root='http://localhost:8888/vueProject/public/api/';
Vue.http.options.emulateJSON=true;
import router from './router/router.js'


var vm=new Vue({
	el:'#app',
	render:c=>c(app),
	router,
})
